package com.eorchis.module.usermessagemanage.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.eorchis.utils.utils.PropertyUtil;

public class ExportUserMessageManageBean {
	private String userName;
	private String loginId;
	private String sexName;
	private Date birthday;
	private String birthdayStr;
	private String phone;
	private String mobelPhone;
	private String email;
	private String folkName;
	private String IDNumber;
	private String political;
	private String education;
	private String unit;
	private String dutyLevel;
	private String duty;
	private String bureauBackUp;
	private String zuGong;
	private String exam;
	private Integer examState;
	private String registration;
	private Date lastOperateTime;
	private String oldDepname;
	private String isBureauBackUpString;
	private Integer isZuGong;
	private String isZuGongString;
	private String examStateString;
	private String registrationStateString;

	private Integer registrationState;
	
	public Integer getRegistrationState() {
		return registrationState;
	}

	public void setRegistrationState(Integer registrationState) {
		this.registrationState = registrationState;
	}

	public Integer getExamState() {
		return examState;
	}

	public void setExamState(Integer examState) {
		this.examState = examState;
	}

	public Integer getIsZuGong() {
		return isZuGong;
	}

	public void setIsZuGong(Integer isZuGong) {
		this.isZuGong = isZuGong;
	}

	/**
	 * 获取是否是局级后备的值
	 * 
	 * @return
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public String getIsBureauBackUpString() {
		if (PropertyUtil.objectNotEmpty(this.isBureauBackUpString)) {
			if (isBureauBackUpString.equals("1")) {
				isBureauBackUpString = "是";
			}else if(isBureauBackUpString.equalsIgnoreCase("0")) {
				isBureauBackUpString = "否";
			}
		} else {
			isBureauBackUpString = "";
		}
		return isBureauBackUpString;
	}

	/**
	 * 设置否是局级后备的值
	 * 
	 * @param isBureauBackUpString
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public void setIsBureauBackUpString(String isBureauBackUpString) {
		this.isBureauBackUpString = isBureauBackUpString;
	}

	/**
	 * 获取是否为组工干部的值
	 * 
	 * @return
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public String getIsZuGongString() {
		if (PropertyUtil.objectNotEmpty(this.getIsZuGong())) {
			if (this.getIsZuGong() == 1) {
				isZuGongString = "是";
			} else if(this.getIsZuGong() == 0) {
				isZuGongString = "否";
			}
		} else {

			isZuGongString = "";
		}
		return isZuGongString;
	}

	/**
	 * 设置否为组工干部的值
	 * 
	 * @param isZuGongString
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public void setIsZuGongString(String isZuGongString) {
		this.isZuGongString = isZuGongString;
	}

	/**
	 * 获取考试状态的值
	 * 
	 * @return
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public String getExamStateString() {
		return examStateString;
	}

	/**
	 * 设置考试状态的值
	 * 
	 * @param examStateString
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public void setExamStateString(String examStateString) {
		this.examStateString = examStateString;
	}

	/**
	 * 获取报名状态的值
	 * 
	 * @return
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public String getRegistrationStateString() {
		if (PropertyUtil.objectNotEmpty(this.getRegistrationState())) {
			if (this.getRegistrationState() == 1) {
				registrationStateString = "是";
			} else if(this.getRegistrationState() == 0) {
				registrationStateString = "否";
			}
		} else {

			registrationStateString = "";
		}
		return registrationStateString;
	}

	/**
	 * 设置报名状态的值
	 * 
	 * @param registrationStateString
	 * @author GuoY
	 * @date Mar 31, 2010
	 */
	public void setRegistrationStateString(String registrationStateString) {
		this.registrationStateString = registrationStateString;
	}

	/**
	 * 获取lastOperateTime的值
	 * 
	 * @return the lastOperateTime
	 */
	public Date getLastOperateTime() {
		return lastOperateTime;
	}

	/**
	 * 设置lastOperateTime的值
	 * 
	 * @param lastOperateTime
	 *            the lastOperateTime to set
	 */
	public void setLastOperateTime(Date lastOperateTime) {
		this.lastOperateTime = lastOperateTime;
	}

	/**
	 * 获取oldDepname的值
	 * 
	 * @return the oldDepname
	 */
	public String getOldDepname() {
		return oldDepname;
	}

	/**
	 * 设置oldDepname的值
	 * 
	 * @param oldDepname
	 *            the oldDepname to set
	 */
	public void setOldDepname(String oldDepname) {
		this.oldDepname = oldDepname;
	}

	/**
	 * 获取userName的值
	 * 
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置userName的值
	 * 
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 获取loginName的值
	 * 
	 * @return the loginName
	 */
	public String getLoginId() {
		return loginId;
	}

	/**
	 * 设置loginName的值
	 * 
	 * @param loginName
	 *            the loginName to set
	 */
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	/**
	 * 获取sexName的值
	 * 
	 * @return the sexName
	 */
	public String getSexName() {
		return sexName;
	}

	/**
	 * 设置sexName的值
	 * 
	 * @param sexName
	 *            the sexName to set
	 */
	public void setSexName(String sexName) {
		this.sexName = sexName;
	}

	/**
	 * 获取birthday的值
	 * 
	 * @return the birthday
	 */
	public Date getBirthday() {
		return birthday;
	}

	/**
	 * 设置birthday的值
	 * 
	 * @param birthday
	 *            the birthday to set
	 */
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	
	
	public String getBirthdayStr() {
		if (PropertyUtil.objectNotEmpty(this.birthday)) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			birthdayStr = sdf.format(this.getBirthday());
		} else {
			birthdayStr = "";
		}
		return birthdayStr;
	}

	public void setBirthdayStr(String birthdayStr) {
		this.birthdayStr = birthdayStr;
	}

	/**
	 * 获取phone的值
	 * 
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * 设置phone的值
	 * 
	 * @param phone
	 *            the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * 获取mobelPhone的值
	 * 
	 * @return the mobelPhone
	 */
	public String getMobelPhone() {
		return mobelPhone;
	}

	/**
	 * 设置mobelPhone的值
	 * 
	 * @param mobelPhone
	 *            the mobelPhone to set
	 */
	public void setMobelPhone(String mobelPhone) {
		this.mobelPhone = mobelPhone;
	}

	/**
	 * 获取email的值
	 * 
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * 设置email的值
	 * 
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * 获取folkName的值
	 * 
	 * @return the folkName
	 */
	public String getFolkName() {
		return folkName;
	}

	/**
	 * 设置folkName的值
	 * 
	 * @param folkName
	 *            the folkName to set
	 */
	public void setFolkName(String folkName) {
		this.folkName = folkName;
	}

	/**
	 * 获取iDNumber的值
	 * 
	 * @return the iDNumber
	 */
	public String getIDNumber() {
		return IDNumber;
	}

	/**
	 * 设置iDNumber的值
	 * 
	 * @param number
	 *            the iDNumber to set
	 */
	public void setIDNumber(String number) {
		IDNumber = number;
	}

	/**
	 * 获取political的值
	 * 
	 * @return the political
	 */
	public String getPolitical() {
		return political;
	}

	/**
	 * 设置political的值
	 * 
	 * @param political
	 *            the political to set
	 */
	public void setPolitical(String political) {
		this.political = political;
	}

	/**
	 * 获取education的值
	 * 
	 * @return the education
	 */
	public String getEducation() {
		return education;
	}

	/**
	 * 设置education的值
	 * 
	 * @param education
	 *            the education to set
	 */
	public void setEducation(String education) {
		this.education = education;
	}

	/**
	 * 获取unit的值
	 * 
	 * @return the unit
	 */
	public String getUnit() {
		return unit;
	}

	/**
	 * 设置unit的值
	 * 
	 * @param unit
	 *            the unit to set
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}

	/**
	 * 获取dutyLevel的值
	 * 
	 * @return the dutyLevel
	 */
	public String getDutyLevel() {
		return dutyLevel;
	}

	/**
	 * 设置dutyLevel的值
	 * 
	 * @param dutyLevel
	 *            the dutyLevel to set
	 */
	public void setDutyLevel(String dutyLevel) {
		this.dutyLevel = dutyLevel;
	}

	/**
	 * 获取duty的值
	 * 
	 * @return the duty
	 */
	public String getDuty() {
		return duty;
	}

	/**
	 * 设置duty的值
	 * 
	 * @param duty
	 *            the duty to set
	 */
	public void setDuty(String duty) {
		this.duty = duty;
	}

	/**
	 * 获取bureauBackUp的值
	 * 
	 * @return the bureauBackUp
	 */
	public String getBureauBackUp() {
		return bureauBackUp;
	}

	/**
	 * 设置bureauBackUp的值
	 * 
	 * @param bureauBackUp
	 *            the bureauBackUp to set
	 */
	public void setBureauBackUp(String bureauBackUp) {
		this.bureauBackUp = bureauBackUp;
	}

	/**
	 * 获取zuGong的值
	 * 
	 * @return the zuGong
	 */
	public String getZuGong() {
		return zuGong;
	}

	/**
	 * 设置zuGong的值
	 * 
	 * @param zuGong
	 *            the zuGong to set
	 */
	public void setZuGong(String zuGong) {
		this.zuGong = zuGong;
	}

	/**
	 * 获取exam的值
	 * 
	 * @return the exam
	 */
	public String getExam() {
		if (PropertyUtil.objectNotEmpty(this.getExamState())) {
			if (this.getExamState() == 1) {
				exam = "考核";
			}else if(this.getExamState() == 0){
				exam = "非考核";
			}
		}else {
			exam = "";	
		}
		return exam;
	}

	/**
	 * 设置exam的值
	 * 
	 * @param exam
	 *            the exam to set
	 */
	public void setExam(String exam) {
		this.exam = exam;
	}

	/**
	 * 获取registration的值
	 * 
	 * @return the registration
	 */
	public String getRegistration() {
		return registration;
	}

	/**
	 * 设置registration的值
	 * 
	 * @param registration
	 *            the registration to set
	 */
	public void setRegistration(String registration) {
		this.registration = registration;
	}
}
